package com.light.gulimall.order.vo;

import java.util.List;

/**
 * 锁定库存
 */
public class StockLockVO {

    //购物车中的商品
    private List<CartItem> cartItems;

    //订单编号
    private String orderSn;


    public StockLockVO() {
    }

    public StockLockVO(List<CartItem> cartItems, String orderSn) {
        this.cartItems = cartItems;
        this.orderSn = orderSn;
    }

    /**
     * 获取
     * @return cartItems
     */
    public List<CartItem> getCartItems() {
        return cartItems;
    }

    /**
     * 设置
     * @param cartItems
     */
    public void setCartItems(List<CartItem> cartItems) {
        this.cartItems = cartItems;
    }

    /**
     * 获取
     * @return orderSn
     */
    public String getOrderSn() {
        return orderSn;
    }

    /**
     * 设置
     * @param orderSn
     */
    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String toString() {
        return "StockLockVO{cartItems = " + cartItems + ", orderSn = " + orderSn + "}";
    }
}
